# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-disk-utility
pkgver=42.0
pkgrel=0
pkgdesc="GNOME libraries and applications for dealing with storage devices"
url="https://wiki.gnome.org/Apps/Disks"
# s390x and riscv64 blocked by rust -> libhandy1
arch="all !s390x !riscv64"
license="GPL-2.0-or-later"
# Uses udisks_client that calls dbus /org/freedesktop/UDisks2/Manager
depends="gptfdisk parted udisks2"
makedepends="
	elogind-dev
	glib-dev
	gnome-settings-daemon-dev
	intltool
	libcanberra-dev
	libdvdread-dev
	libhandy1-dev
	libnotify-dev
	libpwquality-dev
	libsecret-dev
	libxslt-dev
	meson
	udisks2-dev
	xz-dev
	"
options="!check" # no tests
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/gnome-disk-utility/${pkgver%.*}/gnome-disk-utility-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
c47c37262295ba455b483a7ebe7799e92f94b97d177327817bb088cddcc3ff1f5840c3e270651287ff6a88257ec7cfcd1abe4167bf7454bbf55e145c8f1dc7c9  gnome-disk-utility-42.0.tar.xz
"
